package com.endurance.service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class LifeCycleService3 {


    @PostConstruct
     public void destroy() throws Exception {
        System.out.println("调用Bean的销毁回调3...");
        // do something...

    }

    @PreDestroy
     public void init() throws Exception {
        System.out.println("调用Bean的初始化回调3...");
        // do something...
    }

    @Override
    public String toString() {
        return "LifeCycleService3{}";
    }
}
